{{extend './main.html'}}
{{block 'tologin'}}
    <div class="container">
        <div class="page-header">
            <h1><a href="/">我的音乐</a><small>--编辑音乐</small><h1>
        </div>
    </div>
    <div class="container">
        <form id="form" method="post" action="/updatemusic" enctype="multipart/form-data">
            <input type="hidden" name="mid"  value={{results.mid}}>
            <div class="form-group">
                <label for="">歌曲编号</label>
                <input type="text" name="id" class="form-control" readonly value={{results.musicId}} >
            </div>
            <div class="form-group">
                <label for="">歌曲标题</label>
                <input type="text" name="title" class="form-control" value={{results.title}} >
            </div>
            <div class="form-group">
                <label for="">歌曲时长</label>
                <input type="text" name="time" class="form-control" value={{results.time}} >
            </div>
            <div class="form-group">
                <label for="">歌手</label>
                <input type="text" name="singer" class="form-control" value={{results.singer}} >
            </div>
            <div class="form-group">
                <label for="">歌曲文件</label>
                <input type="file" name="file">
                <input type="hidden" name="oldfile"  value={{results.music_file}}>
                <p class="help-block">请上传歌曲文件.</p>
            </div>
            <div class="form-group">
                <label for="">歌词文件</label>
                <input type="file" name="lrc">
                <input type="hidden" name="oldlrc"  value={{results.lrc}}>
                <p class="help-block">请上传歌词文件.</p>
            </div>
            <input type="hidden" name="uid"  value={{results.uid}}>
            <button type="submit" class="btn btn-success">完成编辑</button>

        </form>
    </div>
{{/block}}
